package com.wang.users.util;

import java.util.Date;

import com.alibaba.fastjson.JSONObject;
import com.wang.common.util.ConstatFinalUtil;
import com.wang.users.service.IUsersOperService;
import com.wang.users.service.impl.UsersOperServiceImpl;

/**
 * 测试crondtask（定时器和间隔）
 * @author lby
 *
 */
public class SpringTaskUtil
{
	private IUsersOperService usersOperService = new UsersOperServiceImpl();
	
	/**
	 * 定时任务
	 * 
	 */
	public void method1()
	{
		ConstatFinalUtil.SYS_LOGGER.info("==method1==开始");
		Date now  = new Date();
		JSONObject resultJSON = this.usersOperService.saveOneStatResService(now);
		ConstatFinalUtil.SYS_LOGGER.info("==method1==结束:{}",resultJSON);
		
	}
}
